{% extends "base.html" %}
{% block content %}

    <form action="" method="post" >
        {% csrf_token %}
        <p>
            <label for="{{ form_obj.material_name.id_for_label }}"> {{ form_obj.material_name.label }} :</label>
            {{ form_obj.material_name }}<span style="color: red">{{ form_obj.material_name.errors.0 }}</span>
        </p>        <p>
            <label for="{{ form_obj.material_description.id_for_label }}"> {{ form_obj.material_description.label }} :</label>
            {{ form_obj.material_description }}<span style="color: red">{{ form_obj.material_description.errors.0 }}</span>
        </p>
        <p>
            <lable for="{{ form_obj.material_number.id_for_label }}">{{ form_obj.material_number.label }}:</lable>
            {{ form_obj.material_number }}<span style="color: red">{{ form_obj.material_number.errors.0 }}</span>

        </p>
        <p>
            <lable for="{{ form_obj.buy_time.id_for_label }}">{{ form_obj.buy_time.label }}:</lable>
            {{ form_obj.buy_time }}<span style="color: red">{{ form_obj.buy_time.errors.0 }}</span>

        </p>
        <p>
            <lable for="{{ form_obj.purchaser.id_for_label }}">{{ form_obj.purchaser.label }}:</lable>
            {{ form_obj.purchaser }}<span style="color: red">{{ form_obj.purchaser.errors.0 }}</span>

        </p>
        <p>
            <lable for="{{ form_obj.Experiment_id.id_for_label }}">{{ form_obj.Experiment_id.label }}:</lable>
            {{ form_obj.Experiment_id }}<span style="color: red">{{ form_obj.Experiment_id.errors.0 }}</span>

        </p>

        <button class="btn btn-primary btn-lg">保存</button>

        {{ form_obj.errors }}
    </form>
{% endblock %}